//
//  TransactionController.m
//  LuCaiZhu
//
//  Created by intco on 2018/12/19.
//
#import "HandleNetProduct.h"
#import "CKPuslichTool.h"
#import "UserModel.h"
#import "AddTransactionController.h"
#import "TransactionController.h"
#import "RansomMangerController.h"
#import "RansomNewController.h"

@interface TransactionController ()
@property (weak, nonatomic) IBOutlet UIImageView *leftImage;
@property (weak, nonatomic) IBOutlet UIView *noData;
@property (weak, nonatomic) IBOutlet UIImageView *rightImage;

@end

@implementation TransactionController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"我要交易";
    UIViewSetRadius(_leftImage, 25, 0, nil);
    UIViewSetRadius(_rightImage, 25, 0, nil);
    if ([[UserModel getUser].Accountstatus integerValue]==1) {
        
        self.noData.hidden = YES;
    }else{
        self.noData.hidden = NO;
    }
    
}

- (IBAction)clickListBtnAction:(UIButton *)sender {
    switch (sender.tag) {
        case 0:
        {
            AddTransactionController *vc = (AddTransactionController *)[CKPuslichTool getViewControllerFromStroyBoard:@"Transaction" viewID:@"AddTransactionController"];
            [self.navigationController pushViewController:vc animated:YES];
        }
            break;
        case 1:
        {
            RansomMangerController *vc = (RansomMangerController *)[CKPuslichTool getViewControllerFromStroyBoard:@"Transaction" viewID:@"RansomMangerController"];
            [self.navigationController pushViewController:vc animated:YES];
        }
            break;
        case 2:
            NSLog(@"我要认购");
            break;
    }
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
